package com.yx.cloud.map.layer;

import android.graphics.Canvas;

import com.aaa.lib.map.MapView;
import com.aaa.lib.map.area.CircleArea;
import com.iot.product.sweeper.bean.AreaInfo;

import java.util.List;

public class YXPointAroundAreaLayer extends YXAreaLayer<CircleArea> {
    public YXPointAroundAreaLayer(MapView mapView) {
        super(mapView);
        area = new CircleArea();
    }

    @Override
    public void draw(Canvas canvas) {
        //定点清扫 暂无绘制
        return;
    }

    @Override
    public void initAreaLayer(AreaInfo areaInfo) {
        List<Double> areaVetexs = areaInfo.getBorder();
        area.setCenter((float)(double)areaVetexs.get(0), (float)(double)areaVetexs.get(1));
        setAreaInfo(areaInfo);
    }
}
